import request from '@/utils/request'

export function getTableList(params){
    return request({
        url: '/base/getBaseManageLists',
        method: 'post',
        params
    })
}
export function getBaseManageLists(params){
  return request({
    url: '/base/getBaseManageLists',
    method: 'post',
    params
  })
}
//根据条件获取基地列表（分页）
export function getBaseManageListsByCondition(params){
  return request({
    url: '/base/getBaseManageListsByCondition',
    method: 'post',
    params
  })
}
export function addItem(params){
    return request({
        url: 'base/addBaseManage',
        method: 'post',
        data: params
    })
}
export function updateItem(params){
    return request({
        url: '/base/updateBaseManagebyId',
        method: 'post',
        data: params
    })
}
export function deleteItem(params){
    return request({
        url: '/base/delBaseManagebyId',
        method: 'post',
        params
    })
}
// 获取组织机构树
export function getSysOfficeTree(params){
    return request({
        url: '/sys/getSysOfficeTree',
        method: 'post',
        params
    })
}
// 删除图片
export function delBaseManagePicture(params){
  return request({
    url: 'base/delBaseManagePicture',
    method: 'post',
    params
  })
}
// 获取土壤类型
export function getSoilTypeList(params){
  return request({
    url: 'base/getSoilTypeList',
    method: 'post',
    params
  })
}
